(async() => {
awaitSpottyDL.getAlbum("https://open.spotify.com/album/66MRfhZmuTuyGCO1dJZTRB")
.then(async(results) => {
let album = awaitSpottyDL.downloadAlbum(results, "output/", false)
let res = awaitSpottyDL.retryDownload(album);
console.log(res) // boolean or <Results[]>
});
})();
// Using a while loop until all tracks have no errors (Experimental)
(async() => {
awaitSpottyDL.getAlbum("https://open.spotify.com/album/66MRfhZmuTuyGCO1dJZTRB")
.then(async(results) => {
let album = awaitSpottyDL.downloadAlbum(results, "output/", false)
let res = awaitSpottyDL.retryDownload(album);
while(res != true) {
res = awaitSpottyDL.retryDownload(res);
console.log(res) // boolean or <Results[]>
}
});
})();
Notes
What this module simply does is that it scrapes data from Spotify, then finds the right track/song from Youtube-Music.
Hence, there's no illegal action or DRM bypass being done within this module, as all data is freely taken and used the right way
NodeJS Spotify Downloader without any API Keys or Authentication
We found that spottydl demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.It has 1 open source maintainer collaborating on the project.
Package last updated on 13 Feb 2024
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.